//tab切换
// JavaScript Document
(function(){
	$.fn.tabs = function(o){
		var o = $.extend({meth:"hover"}, o||{})

		return this.each(function(){

			var $menu = $(this).children(".tab_menu").children("li"), $cont = $(this).children(".tab_cont").children(".cont");
			$menu.each(function(i){	
				if(o.meth == "click"){
					$(this).click(function(){ toggle(i) });				
				}else if(o.meth == "hover"){
					
					$(this).hover(function(){ toggle(i) });
				}
			});
			function toggle(i){
              
				$menu.removeClass("cur");
				$menu.eq(i).addClass("cur");
				$cont.removeClass("cur");
				$cont.eq(i).addClass("cur");
			}
		});
	}
})(jQuery);
// 点击切换文字
function showHidden(changeID) {
            ControlHidden(changeID);
            ControlDiv();
        }
        function ControlHidden(changeID) {
            document.getElementById('isCheckForHidden').value = 'none';
            var tempState = document.getElementById(changeID).value;
            SetBeginState();
            if (tempState == 'inline') {
                document.getElementById(changeID).value = 'none';
            }
            else {
                document.getElementById(changeID).value = 'inline';
            }
            if (
				document.getElementById('isCheckFor1').value == 'none' && 
				document.getElementById('isCheckFor2').value == 'none' && 
				document.getElementById('isCheckFor3').value == 'none' && 
				document.getElementById('isCheckFor4').value == 'none' && 
				document.getElementById('isCheckFor5').value == 'none' &&
				document.getElementById('isCheckFor6').value == 'none' && 
				document.getElementById('isCheckFor7').value == 'none' && 
				document.getElementById('isCheckFor8').value == 'none' && 
				document.getElementById('isCheckFor9').value == 'none'
				)
			{
                document.getElementById('isCheckForHidden').value = 'inline';
            }
        }
        function ControlDiv() {
            document.getElementById('hiddenDiv').style.display = document.getElementById('isCheckForHidden').value;
            document.getElementById('myMessage1').style.display = document.getElementById('isCheckFor1').value;
            document.getElementById('myMessage2').style.display = document.getElementById('isCheckFor2').value;
            document.getElementById('myMessage3').style.display = document.getElementById('isCheckFor3').value;
			document.getElementById('myMessage4').style.display = document.getElementById('isCheckFor4').value;
            document.getElementById('myMessage5').style.display = document.getElementById('isCheckFor5').value;
            document.getElementById('myMessage6').style.display = document.getElementById('isCheckFor6').value;
            document.getElementById('myMessage7').style.display = document.getElementById('isCheckFor7').value;
            document.getElementById('myMessage8').style.display = document.getElementById('isCheckFor8').value;
            document.getElementById('myMessage9').style.display = document.getElementById('isCheckFor9').value;
        }
        function SetBeginState() {
            document.getElementById('isCheckForHidden').value = 'none';
            document.getElementById('isCheckFor1').value = 'none';
            document.getElementById('isCheckFor2').value = 'none';
            document.getElementById('isCheckFor3').value = 'none';
            document.getElementById('isCheckFor4').value = 'none';
            document.getElementById('isCheckFor5').value = 'none';
            document.getElementById('isCheckFor6').value = 'none';
            document.getElementById('isCheckFor7').value = 'none';
            document.getElementById('isCheckFor8').value = 'none';
            document.getElementById('isCheckFor9').value = 'none';

        }